package com.agv.backend.entity.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AgvFlaw {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 所属任务
     */
    private Long taskId;

    /**
     * 巡视轮次
     */
    private Integer round;

    /**
     * 缺陷类型
     */
    private String flawType;

    /**
     * 缺陷名称
     */
    private String flawName;

    /**
     * 缺陷描述
     */
    private String flawDesc;

    /**
     * 缺陷距离原点位置
     */
    private Double flawDistance;

    /**
     * 缺陷图片路径
     */
    private String flawImage;

    /**
     * 缺陷图片URL
     */
    private String flawImageUrl;

    /**
     * 产生缺陷的rtsp流地址
     */
    private String flawRtsp;

    /**
     * 是否已经弹窗提示过
     */
    private Boolean shown;

    /**
     * 是否属实
     */
    private Boolean confirmed;

    /**
     * 是否已上传
     */
    private boolean uploaded;

    /**
     * 数据创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 缺陷补充说明
     */
    private String remark;

    private Double flawLength;

    private Double flawArea;

    @TableField("flaw_level")
    private String level;

    private Integer countNum;

    private Boolean deleteFlag;
}
